package com.pomelo.kill.model;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class Car implements Serializable {

    private Integer id;

    /**
    * 商品编号
    */
    private Integer gid;
    private Goods goods;

    /**
    * 用户编号
    */
    private Integer uid;

    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private Date createDate;

    /**
    * 商品数量
    */
    private Integer number;

    /**
    * 商品规格 默认值是 默认
    */
    private String type;

    @Serial
    private static final long serialVersionUID = 1L;
}